package com.phoenix.nacos.demo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/***
 * @Auther: 汪孟飞
 * @Description: demoController
 * @Date: 2025-05-23 16:01
 * @Copyright:
 ***/
@RestController
public class DemoController {

    @Value("${name}")
    private String name;

    @GetMapping("/hello")
    public String helloworld(){
        return "hello "+name;
    }
}
